package dao

import (
	"WORKSPACE/models"
	"fmt"
)

func GetTest() (error, []models.Test, int64) {
	var AttendanceData []models.Test
	var total int64
	err := db.Table("test").Count(&total).Find(&AttendanceData).Error
	fmt.Println(AttendanceData)
	return err, AttendanceData, total
}